package com.qf.springmvc02.dao;

import com.qf.springmvc02.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author nk
 * @date 2022/5/6 16:38
 */
public interface UserMapper {
    //查询全部用户
    List<User> selectAll();

    //查询单个用户
    User selectOne(Integer id);


    //新增
    int insert(User user);

    //修改
    int update(User user);

    //删除
    int delete(Integer id);

    List<User> selectByName(String name);

    List<User> selectByNameFuzzy(String name);
}
